package com.fuyao.cloud.admin.flow.listener;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;

@Slf4j
@Component("taskListenerTest")
public class TaskListenerTest implements TaskListener {

    public TaskListenerTest(){
        log.info("TaskListenerTest init ");
    }

    @Override
    public void notify(DelegateTask delegateTask) {
        String name = delegateTask.getName();
        log.error("执行了监听:" +name);
    }
}
